import st7789py as st7789
from machine import SPI,Pin,UART
import time,gc,os
from fbconsole import FBConsole
spi = SPI(1, baudrate=20000000, polarity=1, sck=Pin(9), mosi=Pin(8))
lcd = st7789.ST7789(spi, 320, 240, reset=Pin(4, Pin.OUT), dc=Pin(5, Pin.OUT))



scr = FBConsole(lcd,st7789.color565(0, 0, 0),st7789.color565(242, 242, 242))
os.dupterm(scr)  



